/*    */ package com.kendoui.taglib.grid;
/*    */ 
/*    */ import com.kendoui.taglib.BaseTag;
/*    */ import com.kendoui.taglib.html.Script;
/*    */ import java.io.IOException;
/*    */ import javax.servlet.jsp.JspException;
/*    */ import javax.servlet.jsp.JspWriter;
/*    */ import javax.servlet.jsp.PageContext;
/*    */ 
/*    */ public class DetailTemplateFunctionTag extends BaseTag
/*    */ {
/*    */   private String id;
/*    */ 
/*    */   public String getId()
/*    */   {
/* 16 */     return this.id;
/*    */   }
/*    */ 
/*    */   public void setId(String id) {
/* 20 */     this.id = id;
/*    */   }
/*    */ 
/*    */   public int doEndTag() throws JspException
/*    */   {
/* 25 */     JspWriter out = this.pageContext.getOut();
/*    */ 
/* 27 */     Script script = new Script();
/* 28 */     script.attr("type", "text/x-kendo-template");
/* 29 */     script.attr("id", getId());
/* 30 */     script.html(body().replaceAll("</script>", "<\\\\/script>").replaceAll("jQuery\\(\"#", "jQuery(\"\\\\#"));
/*    */     try
/*    */     {
/* 33 */       script.write(out);
/*    */     } catch (IOException exception) {
/* 35 */       throw new JspException(exception);
/*    */     }
/*    */ 
/* 38 */     return super.doEndTag();
/*    */   }
/*    */ 
/*    */   public static String tagName() {
/* 42 */     return "grid-detailTemplate";
/*    */   }
/*    */ }

/* Location:           D:\Liao\kendoui.jsp.2013.1.319.trial\wrappers\jsp\kendo-taglib\kendo-taglib-2013.1.319.jar
 * Qualified Name:     com.kendoui.taglib.grid.DetailTemplateFunctionTag
 * JD-Core Version:    0.6.2
 */